#include <bits/stdc++.h>

using namespace std;

int main_124()
{
    int n,m;
    scanf("%d%d",&n,&m);
    if (n-1==m)
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
    return 0;
}
